﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using BCCommon.OAEnums.WorkSchedule;

namespace BCDto.OA.WorkSchedule.WorkScheduleChildrenTask
{
	/// <summary>
	/// 工作进度表子任务
	/// </summary>
	public class WorkScheduleChildrenTaskRequestDto
	{
		/// <summary>
		/// 工作进度表Id
		/// </summary>		
		[Display(Name = "工作进度表Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public long WorkScheduleId { get; set; }
		/// <summary>
		/// 公司Id
		/// </summary>		
		[Display(Name = "公司Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int CompanyId { get; set; }
		/// <summary>
		/// 部门Id
		/// </summary>		
		[Display(Name = "部门Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int DepartmentId { get; set; }
		/// <summary>
		/// 子任务标题
		/// </summary>		
		[Display(Name = "子任务标题")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(100, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string ChildTaskTitle { get; set; }
		/// <summary>
		/// 子任务类型
		/// </summary>		
		[Display(Name = "子任务类型")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public OAWorkScheduleType ChildType { get; set; }
		/// <summary>
		/// 子任务备注
		/// </summary>		
		[Display(Name = "子任务备注")]
		public string ChildTaskRemark { get; set; }
		/// <summary>
		/// 开始日期
		/// </summary>		
		[Display(Name = "开始日期")]
		public DateTime? StartDate { get; set; }
		/// <summary>
		/// 结束日期
		/// </summary>		
		[Display(Name = "结束日期")]
		public DateTime? EndDate { get; set; }
		/// <summary>
		/// 开始时间
		/// </summary>		
		[Display(Name = "开始时间")]
		public DateTime? StartDateTime { get; set; }
		/// <summary>
		/// 结束时间
		/// </summary>		
		[Display(Name = "结束时间")]
		public DateTime? EndDateTime { get; set; }
		/// <summary>
		/// 编辑时间
		/// </summary>		
		[Display(Name = "编辑时间")]
		public DateTime? UpdateTime { get; set; }
	}
}

